package com.biz.service.MService.mebactivity;

import com.biz.model.Hmodel.base.TWxGoods;
import com.biz.model.common.MessageBox;
import com.biz.service.HService.base.BaseServiceI;

import java.util.List;
import java.util.Map;

/**
 *
 */
public interface MebactivityServiceI extends BaseServiceI<TWxGoods> {

    /**
     * 加载活动列表
     * @return
     * @throws Exception
     */
    List<Map<String,Object>> loadMebactivityList()throws Exception;

    /**
     * 加载活动详情
     * @param id
     * @return
     * @throws Exception
     */
    Map<String,Object> findDetail(String id)throws Exception;

    /**
     * 获取评价列表
     * @param id
     * @return
     * @throws Exception
     */
    List<Map<String,Object>> getCommentList(String id)throws Exception;

    /**
     * 查询该用户是否报名
     * @param userId
     * @param id
     * @return
     * @throws Exception
     */
    int getApplyCount(String userId,String id)throws Exception;

    /**
     * 用户报名
     * @param userId
     * @param id
     * @param state
     * @return
     * @throws Exception
     */
    String toCommentRecord(String userId,String id,String state)throws Exception;

    /**
     * 插入评论记录
     * @param userId
     * @param id
     * @param note
     * @return
     * @throws Exception
     */
    String doSaveComment(String userId,String id,String note)throws Exception;




}
